Finding The Rule For The Pattern